package org.springframework.boot.tests.hibernate52.mytest.beanpostprocessor;

import org.springframework.cglib.proxy.MethodInterceptor;
import org.springframework.cglib.proxy.MethodProxy;

import java.lang.reflect.Method;

public class MyMethodInterceptor implements MethodInterceptor {

	@Override
	public Object intercept(Object o, Method method, Object[] objects,
			MethodProxy methodProxy) throws Throwable {
		System.out.println("我是正主的保护壳>>>>>>>");
		Object object = methodProxy.invokeSuper(o, objects);
		System.out.println("我是正主的保护壳>>>>>>>");
		return object;
	}

}
